﻿// HSS.Interlink.DownloadCompletedEventArgs.cs
// ----------------------------------------------------------------------------
// Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.html)
// ----------------------------------------------------------------------------
// HighSpeed-Solutions, LLC
// Copyright (c) 2001-2010
// ----------------------------------------------------------------------------
// File:       DownloadCompletedEventArgs.cs
// Author:     HSS\gbanta
// Created:    07/22/2011
// Modified:   07/22/2011
// ----------------------------------------------------------------------------
namespace HSS.Interlink
{
	#region Using Directives
	using System;

	#endregion

	#region DownloadCompletedEventArgs
	/// <summary>
	/// DownloadCompletedEventArgs
	/// </summary>
	public class DownloadCompletedEventArgs : EventArgs
	{
		#region Constructors
		/// <summary>
		/// Constructor
		/// </summary>
		/// <param name="canceled">true if the download was canceled; otherwise false.</param>
		/// <param name="error">The error, if any, associated with the download request.</param>
		public DownloadCompletedEventArgs(bool canceled, Exception error)
		{
			this.Canceled = canceled;
			this.Error = error;
		}
		#endregion

		#region Properties
		/// <summary>
		/// Gets if the download was canceled.
		/// </summary>
		public bool Canceled { get; private set; }
		/// <summary>
		/// Gets the error, if any, associated with the download request.
		/// </summary>
		public Exception Error { get; private set; }
		#endregion
	}
	#endregion
}